package com.example.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class Log {
    //日志对象
    private static Logger log = LoggerFactory.getLogger(Log.class);

    @RequestMapping("/Log")
    public void log(){
        String s = "日志";
        log.info(s);
    }
}
